package memnet.graph;

public class Testies {
	public static void main(String[] args) {
		Graph g = new Graph();
		
		Node a = g.getNode("a");
		Node b = g.getNode("b");
		Node c = g.getNode("c");
		
		a.setEdge(b, new EdgeData("eat"), 1);
		a.setEdge(b, new EdgeData("like"), 2);
		a.setEdge(c, new EdgeData("like"), 5);
		b.setEdge(a, new EdgeData("like"), 5);
		c.setEdge(b, new EdgeData("blah"),3);
		System.out.println(a.getOutgoingEdges());
		a.setEdge(b, new EdgeData("eat"), 33);
		System.out.println(a.getOutgoingEdges());
		
		//test removing
		System.out.println(b.getIncomingEdges());
		a.removeEdge(b,new EdgeData("like"));
		System.out.println(b.getIncomingEdges());
	}
}
